package com.cn.sl.server.api.system.log.aspect.annotation

import com.cn.sl.server.api.system.log.aspect.service.ProcessLogService
import com.cn.sl.server.api.system.log.aspect.service.impl.DefaultProcessLogServiceImpl
import kotlin.reflect.KClass

/**
 * 需要记录日志
 *
 * @author 阮雪峰
 */
@Target(
    AnnotationTarget.CLASS,
    AnnotationTarget.FUNCTION,
    AnnotationTarget.PROPERTY_GETTER,
    AnnotationTarget.PROPERTY_SETTER
)
@Retention(
    AnnotationRetention.RUNTIME
)
annotation class WriteLog(
    val value: String,
    val processClass: KClass<out ProcessLogService> = DefaultProcessLogServiceImpl::class
)